import * as ActionTypes from './actionTypes'

export const setToken = (token: string) => ({
  type: ActionTypes.TOKEN,
  token
})

export const setRealName = (realName: string) => ({
  type: ActionTypes.REALNAME,
  realName
})

export const setLoginName = (loginName: string) => ({
  type: ActionTypes.LOGINNAME,
  loginName
})
